package com.study.mybatisplus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 接口日志
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_api_log")
public class ApiLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 接口类型
     */
    private String type;

    /**
     * 接口名
     */
    private String name;

    /**
     * 接口url
     */
    private String url;

    /**
     * 请求体
     */
    private String requireData;

    /**
     * 响应体
     */
    private String responseData;

    /**
     * 状态 
     */
    private String status;

    /**
     * 来源  iOS Android
     */
    private String source;

    /**
     * 版本号
     */
    private String version;

    /**
     * 机型
     */
    private String deviceModel;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 纬度
     */
    private BigDecimal latitude;

    /**
     * IP地址
     */
    private String ip;

    /**
     * mac地址
     */
    private String machineAddress;

    /**
     * 运营商
     */
    private String operator;

    /**
     * 手机品牌
     */
    private String brand;

    /**
     * 设备版本号
     */
    private String system;

    /**
     * 响应时长(秒)
     */
    private String responseTime;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getRequireData() {
        return requireData;
    }

    public void setRequireData(String requireData) {
        this.requireData = requireData;
    }
    public String getResponseData() {
        return responseData;
    }

    public void setResponseData(String responseData) {
        this.responseData = responseData;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
    public String getDeviceModel() {
        return deviceModel;
    }

    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }
    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }
    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getMachineAddress() {
        return machineAddress;
    }

    public void setMachineAddress(String machineAddress) {
        this.machineAddress = machineAddress;
    }
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }
    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "ApiLog{" +
            "id=" + id +
            ", type=" + type +
            ", name=" + name +
            ", url=" + url +
            ", requireData=" + requireData +
            ", responseData=" + responseData +
            ", status=" + status +
            ", source=" + source +
            ", version=" + version +
            ", deviceModel=" + deviceModel +
            ", longitude=" + longitude +
            ", latitude=" + latitude +
            ", ip=" + ip +
            ", machineAddress=" + machineAddress +
            ", operator=" + operator +
            ", brand=" + brand +
            ", system=" + system +
            ", responseTime=" + responseTime +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
